<?php

namespace IDock\Insurance\MACN\Response;

use IDock\Http\Response;
use IDock\Printer\EPolicyDownloadPrinter;
use IDock\Printer\ProposalRecallPrinter;

class MACNDownloadResponse extends AllMACNResponse
{
    public $body = [];

    public function printerInit(): Response
    {
        $body = $this->body;
        $list = $body['imgNodes']['ImgNodeVo'] ?? [];
        $proposalRecallPrinter = new EPolicyDownloadPrinter();
        $proposalRecallPrinter->finish = !$this->getError();
        $proposalRecallPrinter->doing = false;
        $proposalRecallPrinter->url = $this->get('Url');

        $this->printer = $proposalRecallPrinter;
        return  $this;
    }

    public function dataFormat($data)
    {
        $proposalRecallPrinter = new EPolicyDownloadPrinter();

    }


}